import java.io.*;
import java.util.Scanner;

/*
 ID: ning yusui
 LANG: JAVA
 TASK: kimbits
 */

public class kimbits {
    Scanner in;
    PrintWriter out;
    private int[][] cnt = new int[32][32];

    public kimbits() throws IOException {
        in = new Scanner(new File(this.getClass().getName() + ".in"));
        out = new PrintWriter(new BufferedWriter(new FileWriter(this.getClass().getName() +
                ".out")));
    }

    private void work() {
        int num = in.nextInt();
        int len = in.nextInt();
        int index = (int) (in.nextLong()-1);
        for (int n = num; n > 0; n--) {
            if (index>0 && calc(n-1, len) <= index) {
                out.print('1');
                index -= calc(n-1, len);
                len--;
            } else {
               out.print('0');
            }
        }
        out.println();
        out.flush();
        out.close();
    }

    int calc(int n, int l) {
        if (n == 0 || l == 0) {
            return 1;
        }
        if (cnt[n][l] != 0) {
            return cnt[n][l];
        }
        return cnt[n][l] = calc(n - 1, l) + calc(n - 1, l - 1);
    }

    public static void main(String[] args) throws IOException {
        long start = System.currentTimeMillis();
        new kimbits().work();
        System.out.println(System.currentTimeMillis() - start + "ms");
    }
}
